﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UIWindows.GlobalStatics;
using static log4net.Appender.RollingFileAppender;

namespace UIWindows.ViewModels
{
    public class FunctionalPointCheckViewModel : Domains.ViewModelBase, XingLucifer.IBase.IViewStatus
    {
        #region 双向绑定
        private string flight;

        public string Flight
        {
            get { return flight; }
            set { SetProperty(ref flight, value); }
        }

        private DateTime date;
        /// <summary>
        /// 日期
        /// </summary>
        public DateTime Date
        {
            get { return date; }
            set { SetProperty(ref date, value); }
        }

        #endregion
        public ParameterStatic Parameter { get; set; }
        public TemporaryStatic Temporary { get; set; }
        public FunctionalPointCheckViewModel(TemporaryStatic temporaryStatic, ParameterStatic parameterStatic)
        {
            Temporary = temporaryStatic;
            Parameter = parameterStatic;
        }

        public void Load()
        {
            Date = DateTime.Now;
            Flight = (Date.Hour < 20 && Date.Hour > 8) ? "M/S" : "E/S";
        }

        public void UnLoad()
        {

        }
    }
}
